import java.util.Iterator;
import java.util.Random;



import junit.framework.TestCase;


public class primerPriorityQueueTest extends TestCase {

	public primerPriorityQueueTest(String arg0) {
		super(arg0);
	}

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}
	
	public void testGeneral(){
		PriorityQueue<Integer> intQ = new PriorityQueue<Integer>();
		
		Random rng = new Random();
		for (int i = 0; i < 50; i++){
			int tmp = rng.nextInt(1000);
			intQ.offer(tmp);
			System.out.print(tmp + ", ");
		}
		System.out.println("\nget out:");
		Iterator<Integer> i = intQ.iterator();
		while(i.hasNext()){
			System.out.print(i.next() + ", ");
		}
		
	}

}
